package com.example.leetdemo.finash;

public class Solution2710 {

    public String removeTrailingZeros(String num) {
        for (int i = num.length() - 1; i >= 0; i--) {
            if (num.charAt(i) != '0') {
                num = num.substring(0, i + 1);
                break;
            }
        }
        return num;
    }

    public static void main(String[] args) {

    }

}
